package com.example.page;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

//封装分页查询条件
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EmpPageQuery {
    private String name;//姓名
    private Integer gender;//性别
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;//入职开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;//入职结束时间
    private Integer pageNum;;//当前页码
    private Integer pageSize;//每页显示记录数
    private Integer startIndex;//当前页面数据的起始索引
}